* lisp/progmodes/ruby-mode.el (ruby-syntax-expansion-allowed-p): New
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 31 May 2013 06:04:33 +0000 (10:04 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 31 May 2013 06:04:33 +0000 (10:04 +0400)
commitc46b27cc0f733802d8b52fef7643cf8ef1a9b1d4
tree267edf049b3aab1b2217b9a41c418f1892a47c43
parent8dea8fe0a21b1dd2c322ccd75ef32356fc577269
* lisp/progmodes/ruby-mode.el (ruby-syntax-expansion-allowed-p): New
function, checks if expression expansion is allowed in given parse
state.
(ruby-syntax-propertize-expansion): Use it.
(ruby-syntax-propertize-function): Bind `case-fold-search' to nil
around the body.

* test/automated/ruby-mode-tests.el: New tests, for percent literals
and expression expansion.
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/ChangeLog
test/automated/ruby-mode-tests.el